package com.ruoyi.project.filemgr.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 监控对象 share_monitor
 * 
 * @author filemgr
 * @date 2024-02-02
 */
public class ShareMonitor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 分享主键 */
    @Excel(name = "分享主键")
    private Long shareId;

    /** 文件 */
    @Excel(name = "文件")
    private Long fileId;

    /** 谁的分享 */
    @Excel(name = "谁的分享")
    private Long userId;
    /** 分享给谁名字 */
    @Excel(name = "分享给谁名字")
    private String userName;
    /** 操作类型 */
    @Excel(name = "操作类型")
    private String type;

    /** 操作人ID */
    @Excel(name = "操作人ID")
    private Long typeUserId;

    /** 操作人 */
    @Excel(name = "操作人")
    private String typeUserName;
    private String filename;

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setShareId(Long shareId) {
        this.shareId = shareId;
    }

    public Long getShareId() {
        return shareId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public Long getFileId() {
        return fileId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setTypeUserId(Long typeUserId) {
        this.typeUserId = typeUserId;
    }

    public Long getTypeUserId() {
        return typeUserId;
    }

    public void setTypeUserName(String typeUserName) {
        this.typeUserName = typeUserName;
    }

    public String getTypeUserName() {
        return typeUserName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("shareId", getShareId())
                .append("fileId", getFileId())
                .append("userId", getUserId())
                .append("type", getType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("typeUserId", getTypeUserId())
                .append("typeUserName", getTypeUserName())
                .toString();
    }
}
